package com.ecomemerce.app.comment.widgets

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.ecomemerce.app.R

@Composable
@Stable
fun BannerSection() {
    val pagerState = rememberPagerState(pageCount = { 3 })
    HorizontalPager(state = pagerState) { page ->
        Image(
            painter = painterResource(id = R.drawable.ic_launcher_background),
            contentDescription = "Banner $page",
            modifier = Modifier
                .fillMaxWidth()
                .height(180.dp)
        )
    }
}